import request from '@/utils/request'

// 查询流程主体列表
export function listContentCaseFlow(query) {
  return request({
    url: '/contentCaseFlow/contentCaseFlow/list',
    method: 'get',
    params: query
  })
}

// 查询流程主体详细
export function getContentCaseFlow(flowId) {
  return request({
    url: '/contentCaseFlow/contentCaseFlow/' + flowId,
    method: 'get'
  })
}

// 新增流程主体
export function addContentCaseFlow(data) {
  return request({
    url: '/contentCaseFlow/contentCaseFlow',
    method: 'post',
    data: data
  })
}

// 修改流程主体
export function updateContentCaseFlow(data) {
  return request({
    url: '/contentCaseFlow/contentCaseFlow',
    method: 'put',
    data: data
  })
}

// 删除流程主体
export function delContentCaseFlow(flowId) {
  return request({
    url: '/contentCaseFlow/contentCaseFlow/' + flowId,
    method: 'delete'
  })
}
